<template>
	<view class="content">
		<cu-custom bgColor="head2" :isBack="true">
			<block slot="backText"></block>
			<block slot="content">收货提交</block>
		</cu-custom>
		<view class="Search" style="flex-direction: column;height: 	708rpx;">
				<input type="text" v-model="wmInQmIstr.imNoticeItem" placeholder="imNoticeItem" />
				<input type="text" v-model="wmInQmIstr.qmOkQuat" placeholder="qmOkQuat" />
				<input type="text" v-model="wmInQmIstr.proData" placeholder="proData" />
				<input type="text" v-model="wmInQmIstr.tinId" placeholder="tinId" />
				<input type="text" v-model="wmInQmIstr.binIda" placeholder="binId" />
				<input type="text" v-model="wmInQmIstr.itemText" placeholder="itemText" />
				<input type="text" v-model="wmInQmIstr.recDeg" placeholder="recDeg" />
				<input type="text" v-model="wmInQmIstr.createBy" placeholder="createBy" />
				<button class="btn" @click="saveGoodsList" type="default" >收货提交</button>		
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				wmInQmIstr: {
					imNoticeItem: "",
					qmOkQuat: "",
					proData: "",
					tinId: "",
					binId: "",
					itemText: "",
					recDeg: "",
					createBy: ""
				}
				// wmInQmIstr: {
				// 	imNoticeItem: "402881087fe9b9aa017fe9bd3ebb00d8",
				// 	qmOkQuat: "2",
				// 	proData: "2022-06-23",
				// 	tinId: "T01",
				// 	binId: "010301",
				// 	itemText: "",
				// 	recDeg: "2",
				// 	createBy: "admin"
				// },
				
			}
		},
		methods: {		
			saveGoodsList() {
				this.$http.post( // 收货提交
				`wms/rest/pdaapi/wmInQmIController/save?wmInQmIstr=${JSON.stringify(this.wmInQmIstr)}`   
				).then(res => {
					console.log(res)
					this.wmInQmIstr = {
						imNoticeItem: "",
						qmOkQuat: "",
						proData: "",
						tinId: "",
						binId: "",
						itemText: "",
						recDeg: "",
						createBy: ""
					}
				})	
		
			}
	    }
	}
</script>

<style lang="less" scoped>
	.content {
		width: 100%;
		height: 100vh;
		background-color: #F3F4F6;
		overflow: hidden;
		display: flex;
		flex-direction: column;
		.Search{
			width: 100%;
			height: 101rpx;
			background: #FFFFFF;
			display: flex;
			justify-content: center;
			align-items: center;
			input{
				margin-top: 16rpx;
				padding-left: 36rpx;
				width: 92.66%;
				height: 70rpx;
				background: #F3F4F6;
				border-radius: 30px;
				font-size: 28rpx;
				font-weight: 400;
			}
			.btn {
				background-color: #3194de; 
				width: 100px; 
				height: 50px; 
				margin: 20px 0;
				color: #fff;
				font-size: 16px;
				
			}
			
		}
	}
	
</style>
